package cn.jari.erp.inventory.patches

import com.csicit.ace.api.BatchElementEvent
import cn.jari.erp.inventory.ServicePatchGroup
import com.csicit.ace.patcher.PatchProvider
import com.csicit.ace.utils.AceAppContext
import com.csicit.ace.api.appservice.dto.AppInstanceReference
import com.csicit.ace.api.appservice.dto.AppServiceReference
import com.csicit.ace.api.appservice.dto.FrontendSandboxMode
import com.csicit.ace.api.appservice.event.AppBatchEvent
import com.csicit.ace.api.appservice.event.AppInstanceCreatedEvent
import com.csicit.ace.api.appservice.event.AppInstanceUpdatedEvent
import com.csicit.ace.api.appservice.event.AppMessageCreatedEvent
import com.csicit.ace.api.appservice.event.AppServiceCreatedEvent
import com.csicit.ace.api.appservice.event.MainServiceSetEvent
import com.csicit.ace.api.modeler.dto.AggregateDefinitionReference
import com.csicit.ace.api.modeler.dto.CommandDefinitionReference
import com.csicit.ace.api.modeler.dto.DataSourceDefinitionReference
import com.csicit.ace.api.modeler.dto.DtoDefinitionReference
import com.csicit.ace.api.modeler.dto.EntityDefinitionReference
import com.csicit.ace.api.modeler.dto.EnumDefinitionReference
import com.csicit.ace.api.modeler.dto.PropertyDefinitionReference
import com.csicit.ace.api.modeler.enums.CollectionType
import com.csicit.ace.api.modeler.enums.CommandHttpMethod
import com.csicit.ace.api.modeler.enums.DataType
import com.csicit.ace.api.modeler.enums.DtoPropertyCreateOption
import com.csicit.ace.api.modeler.enums.EntityOperation
import com.csicit.ace.api.modeler.enums.MapKeyDataType
import com.csicit.ace.api.modeler.enums.OrderByDirection
import com.csicit.ace.api.modeler.enums.ParameterDataType
import com.csicit.ace.api.modeler.enums.RelationMode
import com.csicit.ace.api.modeler.enums.RequestParamBindingType
import com.csicit.ace.api.modeler.enums.ReturnDataType
import com.csicit.ace.api.modeler.enums.TreeStructureType
import com.csicit.ace.api.modeler.event.ModelerBatchEvent
import com.csicit.ace.api.modeler.event.aggregate.CreateAggregateDefinitionEvent
import com.csicit.ace.api.modeler.event.command.CreateCommandDefinitionEvent
import com.csicit.ace.api.modeler.event.command.CreateCommandParamDefinitionEvent
import com.csicit.ace.api.modeler.event.constraint.CreateEntityConstraintEvent
import com.csicit.ace.api.modeler.event.datasource.CreateDataSourceEvent
import com.csicit.ace.api.modeler.event.dto.CreateDtoDefinitionFromEntityEvent
import com.csicit.ace.api.modeler.event.dto.CreateDtoPropDefFromEntityEvent
import com.csicit.ace.api.modeler.event.entities.CreateEntityEvent
import com.csicit.ace.api.modeler.event.enums.CreateEnumEvent
import com.csicit.ace.api.modeler.event.enums.CreateEnumValueEvent
import com.csicit.ace.api.modeler.event.property.CreateOrderByDescriptorEvent
import com.csicit.ace.api.modeler.event.property.CreatePropertyEvent
import com.csicit.ace.api.organization.event.RoleCreatedEvent
import java.util.List
import java.util.Map
import java.util.Set
import org.axonframework.eventhandling.gateway.EventGateway
import org.springframework.stereotype.Component

/*
 * 警告：代码由鲲舟平台生成，请勿手动修改。
 * Warn: This class file is generated by JARI-ACE platform, please do not modify manually。
 */

/**
 * inventory-service的0.1.0-SNAPSHOT-1版升级补丁
 *
 * @author JARI-ACE
 */
@Component
@AceAppContext
open class Patch_0_1_0_SNAPSHOT_1(val eventGateway: EventGateway) : PatchProvider {
    override fun getGroup(): Class<*> {
        return ServicePatchGroup::class.java
    }

    override fun getPatchVersion(): Long {
        return 549755813889
    }

    override fun getProductVersion(): String {
        return "0.1.0-SNAPSHOT-1"
    }

    override fun executePatch() {
        doExecuteAppBatchEvent0()
        doExecuteAppBatchEvent1()
        doExecuteModelerBatchEvent0()
        doExecuteModelerBatchEvent1()
        doExecuteModelerBatchEvent2()
        doExecuteModelerBatchEvent3()
    }

    fun doExecuteAppBatchEvent0() {
        val appBatchEvent = ArrayList<BatchElementEvent>()
        appBatchEvent.add(AppInstanceCreatedEvent.builder()
            .id("8nkFbruJIsP")
            .name("jari-erp")
            .mainServiceName(null)
            .basePackage(null)
            .devServerUrl("http://localhost:3823")
            .sandboxMode(FrontendSandboxMode.IFRAME)
            .description("")
            .caption("{jariErp}")
            .sortIndex(0)
            .vendor("")
            .category("")
            .industry("")
            .gitRemoteUrl("http://git.jariit.local/jari-ace/jari-erp-demo.git")
            .gitBranch("gen1")
            .gitUsername("jari")
            .supportedLocales(listOf("zh-CN", "en"))
            .icon("ri-community-fill")
            .iconColor("linear-gradient(-225deg, #22E1FF 0%, #1D8FE1 48%, #625EB1 100%)")
            .realmName("ace-platform")
            .artifactGroup("cn.jari.erp")
            .locked(false)
            .captionBundle(listOf(AppMessageCreatedEvent.builder()
  .id("8nkFbruJIsN")
  .appInstance(AppInstanceReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("8nkFbruJIsO")
    .releaseSource("c321")
    .name("ace-app-manage")
    .caption("{ace.adminConsole.caption}")
    .build())
  .appName(null)
  .key("jariErp")
  .locale("zh-CN")
  .message("杰瑞ERP")
  .releaseSource("8716")
  .sourceId("5uFzovh2zo5")
  .dataVersion(0)
  .build()))
            .releaseSource("8716")
            .sourceId("5uFzovh2zo7")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppServiceCreatedEvent.builder()
            .id("8nkFbruJIsS")
            .name("inventory-service")
            .basePackage("cn.jari.erp.inventory")
            .description(null)
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .dataVersion(0)
            .releaseSource("8716")
            .sourceId("5uFzovh2zoa")
            .build())
        appBatchEvent.add(MainServiceSetEvent.builder()
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appService(AppServiceReference.builder()
                .id("8nkFbruJIsS")
                .sourceId("5uFzovh2zoa")
                .releaseSource("8716")
                .name("inventory-service")
                .build())
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsO")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("enum.unit")
            .locale("zh-CN")
            .message("计量单位")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo6")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsP")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("enum.unit.mm")
            .locale("zh-CN")
            .message("毫米")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo7")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsQ")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("enum.unit.cm")
            .locale("zh-CN")
            .message("厘米")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo8")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsR")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("enum.unit.dm")
            .locale("zh-CN")
            .message("分米")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo9")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsS")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("role.inventoryManage")
            .locale("zh-CN")
            .message("存货管理")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoa")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsT")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("entity.inventoryCategory")
            .locale("zh-CN")
            .message("存货类别")
            .releaseSource("8716")
            .sourceId("5uFzovh2zob")
            .dataVersion(0)
            .build())
        appBatchEvent.add(RoleCreatedEvent.builder()
            .id("8nkFbruJItC")
            .name("inventoryManage")
            .caption("{role.inventoryManage}")
            .description("")
            .realms(listOf("ace-platform"))
            .app(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .addTo(null)
            .releaseSource("8716")
            .sourceId("5uFzovh2zoV")
            .dataVersion(0)
            .build())
        eventGateway.publish(AppBatchEvent.builder()
                                          .events(appBatchEvent)
                                          .build())
    }

    fun doExecuteAppBatchEvent1() {
        val appBatchEvent = ArrayList<BatchElementEvent>()
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsU")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("entity.inventoryItem")
            .locale("zh-CN")
            .message("存货档案")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoc")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsV")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("entity.inventoryCategory.attributes")
            .locale("zh-CN")
            .message("类别属性")
            .releaseSource("8716")
            .sourceId("5uFzovh2zod")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsW")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("entity.inventoryCategory.name")
            .locale("zh-CN")
            .message("类别名称")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoe")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppMessageCreatedEvent.builder()
            .id("8nkFbruJIsX")
            .appInstance(AppInstanceReference.builder()
                .id("8nkFbruJIsP")
                .sourceId("5uFzovh2zo7")
                .releaseSource("8716")
                .name("jari-erp")
                .caption("{jariErp}")
                .build())
            .appName(null)
            .key("entity.inventoryItem.name")
            .locale("zh-CN")
            .message("存货名称")
            .releaseSource("8716")
            .sourceId("5uFzovh2zof")
            .dataVersion(0)
            .build())
        appBatchEvent.add(AppInstanceUpdatedEvent.builder()
            .id("8nkFbruJIsP")
            .name("jari-erp")
            .mainServiceName(null)
            .devServerUrl("http://localhost:3823")
            .sandboxMode(FrontendSandboxMode.IFRAME)
            .description("")
            .caption("杰瑞ERP")
            .sortIndex(0)
            .vendor("")
            .category("")
            .industry("")
            .gitRemoteUrl("https://gitee.com/hu_champion/jari-erp.git")
            .gitBranch("master")
            .gitUsername("18036699066")
            .supportedLocales(listOf("en", "zh-CN"))
            .artifactGroup("cn.jari.erp")
            .icon("ri-community-fill")
            .iconColor("linear-gradient(-225deg, #22E1FF 0%, #1D8FE1 48%, #625EB1 100%)")
            .locked(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo7")
            .dataVersion(1)
            .build())
        eventGateway.publish(AppBatchEvent.builder()
                                          .events(appBatchEvent)
                                          .build())
    }

    fun doExecuteModelerBatchEvent0() {
        val modelerBatchEvent = ArrayList<BatchElementEvent>()
        modelerBatchEvent.add(CreateDataSourceEvent.builder()
            .id("8nkFbruJIsS")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("inventory-service-primary-ds")
            .dataVersion(0)
            .databaseType("DM DBMS")
            .jdbcUrl("192.168.111.93:5236")
            .byJdbcUrl("192.168.111.93:5236")
            .readonly(false)
            .userName("JARIACE2")
            .schemaName("JARIACE2")
            .mainDatasource(true)
            .packageName("primary")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoa")
            .properties(mapOf("schema" to "JARIACE2","password" to "","username" to "JARIACE2"))
            .build())
        modelerBatchEvent.add(CreateEnumEvent.builder()
            .id("8nkFbruJIsN")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("Unit")
            .caption("{enum.unit}")
            .comment("")
            .dataVersion(0)
            .values(listOf())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .build())
        modelerBatchEvent.add(CreateEnumValueEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .sortIndex(1)
            .value("MM")
            .text("{enum.unit.mm}")
            .enumDefinition(EnumDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .name("Unit")
                .caption("计量单位")
                .dataVersion(0)
                .build())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .appServiceName("inventory-service")
            .appName("jari-erp")
            .build())
        modelerBatchEvent.add(CreateEnumValueEvent.builder()
            .id("8nkFbruJIsO")
            .dataVersion(0)
            .sortIndex(2)
            .value("CM")
            .text("{enum.unit.cm}")
            .enumDefinition(EnumDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .name("Unit")
                .caption("计量单位")
                .dataVersion(0)
                .build())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo6")
            .appServiceName("inventory-service")
            .appName("jari-erp")
            .build())
        modelerBatchEvent.add(CreateEnumValueEvent.builder()
            .id("8nkFbruJIsP")
            .dataVersion(0)
            .sortIndex(3)
            .value("DM")
            .text("{enum.unit.dm}")
            .enumDefinition(EnumDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .name("Unit")
                .caption("计量单位")
                .dataVersion(0)
                .build())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo7")
            .appServiceName("inventory-service")
            .appName("jari-erp")
            .build())
        modelerBatchEvent.add(CreateAggregateDefinitionEvent.builder()
            .id("8nkFbruJIsN")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .datasource(DataSourceDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoa")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("inventory-service-primary-ds")
                .packageName("primary")
                .build())
            .name("InventoryCategory")
            .description("{entity.inventoryCategory}")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .build())
        modelerBatchEvent.add(CreateEntityEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .dataSource(DataSourceDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoa")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("inventory-service-primary-ds")
                .packageName("primary")
                .build())
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryCategory")
                .build())
            .name("InventoryCategory")
            .caption("{entity.inventoryCategory}")
            .comment("")
            .tableName("iv_inventory_category")
            .immutable(false)
            .treeStructure(TreeStructureType.PATH_TREE)
            .parentIdFieldName(null)
            .sortIndexFieldName(null)
            .sortPathFieldName(null)
            .hasChildrenFieldName(null)
            .recycledFieldName(null)
            .recycleIndexFieldName(null)
            .dataVersionFieldName(null)
            .autoIdFieldName(null)
            .classificationLevelFieldName(null)
            .createdByUserIdFieldName(null)
            .createdByDeptIdFieldName(null)
            .createdByUserNameFieldName(null)
            .createdByDeptNameFieldName(null)
            .createdByRealmNameFieldName(null)
            .createdTimeFieldName(null)
            .releaseSourceFieldName(null)
            .sourceIdFieldName(null)
            .pathTreeNodeMask("444444")
            .recyclable(true)
            .enableDataVersion(true)
            .autoId(true)
            .imported(null)
            .sensitive(true)
            .orgAssets(true)
            .supportPublish(true)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .parentIdSourceId("5uFzovh2zoj")
            .sortIndexSourceId("5uFzovh2zom")
            .sortPathSourceId("5uFzovh2zol")
            .hasChildrenSourceId("5uFzovh2zoi")
            .recycledSourceId("5uFzovh2zo6")
            .recycleIndexSourceId("5uFzovh2zo7")
            .autoIdSourceId("5uFzovh2zo5")
            .dataVersionSourceId("5uFzovh2zo8")
            .classificationLevelSourceId("5uFzovh2zo9")
            .createdByUserIdSourceId("5uFzovh2zoa")
            .createdByDeptIdSourceId("5uFzovh2zoc")
            .createdByUserNameSourceId("5uFzovh2zob")
            .createdByDeptNameSourceId("5uFzovh2zod")
            .createdByRealmNameSourceId("5uFzovh2zoe")
            .createdTimeSourceId("5uFzovh2zof")
            .releaseSourceSourceId("5uFzovh2zog")
            .sourceIdSourceId("5uFzovh2zoh")
            .childrenSourceId("5uFzovh2zok")
            .build())
        modelerBatchEvent.add(CreateAggregateDefinitionEvent.builder()
            .id("8nkFbruJIsO")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .datasource(DataSourceDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoa")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("inventory-service-primary-ds")
                .packageName("primary")
                .build())
            .name("InventoryItem")
            .description("{entity.inventoryItem}")
            .releaseSource("8716")
            .sourceId("5uFzovh2zo6")
            .build())
        modelerBatchEvent.add(CreateEntityEvent.builder()
            .id("8nkFbruJIsO")
            .dataVersion(0)
            .dataSource(DataSourceDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoa")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("inventory-service-primary-ds")
                .packageName("primary")
                .build())
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryItem")
                .build())
            .name("InventoryItem")
            .caption("{entity.inventoryItem}")
            .comment("")
            .tableName("iv_inventory_item")
            .immutable(false)
            .treeStructure(TreeStructureType.NONE)
            .parentIdFieldName(null)
            .sortIndexFieldName(null)
            .sortPathFieldName(null)
            .hasChildrenFieldName(null)
            .recycledFieldName(null)
            .recycleIndexFieldName(null)
            .dataVersionFieldName(null)
            .autoIdFieldName(null)
            .classificationLevelFieldName(null)
            .createdByUserIdFieldName(null)
            .createdByDeptIdFieldName(null)
            .createdByUserNameFieldName(null)
            .createdByDeptNameFieldName(null)
            .createdByRealmNameFieldName(null)
            .createdTimeFieldName(null)
            .releaseSourceFieldName(null)
            .sourceIdFieldName(null)
            .pathTreeNodeMask("444444")
            .recyclable(true)
            .enableDataVersion(true)
            .autoId(true)
            .imported(null)
            .sensitive(true)
            .orgAssets(true)
            .supportPublish(true)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo6")
            .parentIdSourceId(null)
            .sortIndexSourceId(null)
            .sortPathSourceId(null)
            .hasChildrenSourceId(null)
            .recycledSourceId("5uFzovh2zoo")
            .recycleIndexSourceId("5uFzovh2zop")
            .autoIdSourceId("5uFzovh2zon")
            .dataVersionSourceId("5uFzovh2zoq")
            .classificationLevelSourceId("5uFzovh2zor")
            .createdByUserIdSourceId("5uFzovh2zos")
            .createdByDeptIdSourceId("5uFzovh2zou")
            .createdByUserNameSourceId("5uFzovh2zot")
            .createdByDeptNameSourceId("5uFzovh2zov")
            .createdByRealmNameSourceId("5uFzovh2zow")
            .createdTimeSourceId("5uFzovh2zox")
            .releaseSourceSourceId("5uFzovh2zoy")
            .sourceIdSourceId("5uFzovh2zoz")
            .childrenSourceId(null)
            .build())
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJIti")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .name("inventoryCategory")
            .columnName("inventory_category_id")
            .caption("{entity.inventoryCategory}")
            .comment("")
            .dataType(DataType.ENTITY)
            .attachId(null)
            .collectionType(CollectionType.NONE)
            .collectionTableName(null)
            .joinColumnName(null)
            .mapKeyDataType(null)
            .refKeyDataType(DataType.STRING)
            .refKeySize(36)
            .entityPrimaryKeyColumnName(null)
            .mapKeyEnum(null)
            .mapKeyColumnName(null)
            .entityType(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .mappedByProperty(null)
            .enumType(null)
            .cascadeType(setOf())
            .orphanRemoval(false)
            .relationMode(RelationMode.MANY_TO_ONE)
            .orderedCollection(null)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole("inventoryManage")
            .readRole("inventoryManage")
            .defaultValue(null)
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoA")
            .build())
        eventGateway.publish(ModelerBatchEvent.builder()
                                          .events(modelerBatchEvent)
                                          .build())
    }

    fun doExecuteModelerBatchEvent1() {
        val modelerBatchEvent = ArrayList<BatchElementEvent>()
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJItj")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .name("inventoryItem")
            .columnName(null)
            .caption("{entity.inventoryItem}")
            .comment("")
            .dataType(DataType.ENTITY)
            .attachId(null)
            .collectionType(CollectionType.LIST)
            .collectionTableName(null)
            .joinColumnName(null)
            .mapKeyDataType(null)
            .refKeyDataType(null)
            .refKeySize(null)
            .entityPrimaryKeyColumnName(null)
            .mapKeyEnum(null)
            .mapKeyColumnName(null)
            .entityType(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .mappedByProperty(PropertyDefinitionReference.builder()
                .id("8nkFbruJIti")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoA")
                .name("inventoryCategory")
                .caption("存货类别")
                .entity(EntityDefinitionReference.builder()
                    .id("8nkFbruJIsO")
                    .releaseSource("8716")
                    .sourceId("5uFzovh2zo6")
                    .dataVersion(0)
                    .name("InventoryItem")
                    .caption("存货档案")
                    .tableName("iv_inventory_item")
                    .build())
                .build())
            .enumType(null)
            .cascadeType(setOf())
            .orphanRemoval(false)
            .relationMode(RelationMode.ONE_TO_MANY)
            .orderedCollection(null)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole("inventoryManage")
            .readRole("inventoryManage")
            .defaultValue(null)
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoB")
            .build())
        modelerBatchEvent.add(CreateOrderByDescriptorEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .sortIndex(1)
            .definedOnProperty(PropertyDefinitionReference.builder()
                .id("8nkFbruJItj")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoB")
                .name("inventoryItem")
                .caption("存货档案")
                .entity(EntityDefinitionReference.builder()
                    .id("8nkFbruJIsN")
                    .releaseSource("8716")
                    .sourceId("5uFzovh2zo5")
                    .dataVersion(0)
                    .name("InventoryCategory")
                    .caption("存货类别")
                    .tableName("iv_inventory_category")
                    .build())
                .build())
            .orderByProperty("id")
            .direction(OrderByDirection.ASC)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .build())
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJItk")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .name("attributes")
            .columnName("attributes")
            .caption("{entity.inventoryCategory.attributes}")
            .comment("")
            .dataType(DataType.STRING)
            .attachId(null)
            .collectionType(CollectionType.MAP)
            .collectionTableName("iv_inventory_category_attrs")
            .joinColumnName("inventory_category_id")
            .mapKeyDataType(MapKeyDataType.STRING)
            .refKeyDataType(DataType.STRING)
            .refKeySize(36)
            .entityPrimaryKeyColumnName("id")
            .mapKeyEnum(null)
            .mapKeyColumnName("map_key")
            .entityType(null)
            .mappedByProperty(null)
            .enumType(null)
            .cascadeType(setOf())
            .orphanRemoval(null)
            .relationMode(null)
            .orderedCollection(true)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole(null)
            .readRole("inventoryManage")
            .defaultValue("")
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoC")
            .build())
        modelerBatchEvent.add(CreateEntityConstraintEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .constraintName("size")
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .properties(setOf(PropertyDefinitionReference.builder()
  .id("8nkFbruJItk")
  .releaseSource("8716")
  .sourceId("5uFzovh2zoC")
  .name("attributes")
  .caption("类别属性")
  .entity(EntityDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .dataVersion(0)
    .name("InventoryCategory")
    .caption("存货类别")
    .tableName("iv_inventory_category")
    .build())
  .build()))
            .constraintParameters(mapOf("max" to "255"))
            .message(null)
            .payloads(setOf())
            .groups(setOf())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .datasourceId("8nkFbruJIsS")
            .build())
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJItl")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .name("name")
            .columnName("name")
            .caption("{entity.inventoryCategory.name}")
            .comment("")
            .dataType(DataType.STRING)
            .attachId(null)
            .collectionType(CollectionType.NONE)
            .collectionTableName(null)
            .joinColumnName(null)
            .mapKeyDataType(null)
            .refKeyDataType(null)
            .refKeySize(null)
            .entityPrimaryKeyColumnName(null)
            .mapKeyEnum(null)
            .mapKeyColumnName(null)
            .entityType(null)
            .mappedByProperty(null)
            .enumType(null)
            .cascadeType(setOf())
            .orphanRemoval(null)
            .relationMode(null)
            .orderedCollection(null)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole(null)
            .readRole(null)
            .defaultValue("")
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoD")
            .build())
        modelerBatchEvent.add(CreateEntityConstraintEvent.builder()
            .id("8nkFbruJIsO")
            .dataVersion(0)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .constraintName("size")
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .properties(setOf(PropertyDefinitionReference.builder()
  .id("8nkFbruJItl")
  .releaseSource("8716")
  .sourceId("5uFzovh2zoD")
  .name("name")
  .caption("类别名称")
  .entity(EntityDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .dataVersion(0)
    .name("InventoryCategory")
    .caption("存货类别")
    .tableName("iv_inventory_category")
    .build())
  .build()))
            .constraintParameters(mapOf("max" to "255"))
            .message(null)
            .payloads(setOf())
            .groups(setOf())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo6")
            .datasourceId("8nkFbruJIsS")
            .build())
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJItm")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .name("name")
            .columnName("name")
            .caption("{entity.inventoryItem.name}")
            .comment("")
            .dataType(DataType.STRING)
            .attachId(null)
            .collectionType(CollectionType.NONE)
            .collectionTableName(null)
            .joinColumnName(null)
            .mapKeyDataType(null)
            .refKeyDataType(null)
            .refKeySize(null)
            .entityPrimaryKeyColumnName(null)
            .mapKeyEnum(null)
            .mapKeyColumnName(null)
            .entityType(null)
            .mappedByProperty(null)
            .enumType(null)
            .cascadeType(setOf())
            .orphanRemoval(null)
            .relationMode(null)
            .orderedCollection(null)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole(null)
            .readRole(null)
            .defaultValue("")
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoE")
            .build())
        modelerBatchEvent.add(CreateEntityConstraintEvent.builder()
            .id("8nkFbruJIsP")
            .dataVersion(0)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .constraintName("size")
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .properties(setOf(PropertyDefinitionReference.builder()
  .id("8nkFbruJItm")
  .releaseSource("8716")
  .sourceId("5uFzovh2zoE")
  .name("name")
  .caption("存货名称")
  .entity(EntityDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo6")
    .dataVersion(0)
    .name("InventoryItem")
    .caption("存货档案")
    .tableName("iv_inventory_item")
    .build())
  .build()))
            .constraintParameters(mapOf("max" to "255"))
            .message(null)
            .payloads(setOf())
            .groups(setOf())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo7")
            .datasourceId("8nkFbruJIsS")
            .build())
        modelerBatchEvent.add(CreatePropertyEvent.builder()
            .id("8nkFbruJItn")
            .dataVersion(0)
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .name("units")
            .columnName("units")
            .caption("{enum.unit}")
            .comment("")
            .dataType(DataType.ENUM)
            .attachId(null)
            .collectionType(CollectionType.LIST)
            .collectionTableName("iv_inventory_item_units")
            .joinColumnName("inventory_item_id")
            .mapKeyDataType(null)
            .refKeyDataType(DataType.STRING)
            .refKeySize(36)
            .entityPrimaryKeyColumnName("id")
            .mapKeyEnum(null)
            .mapKeyColumnName(null)
            .entityType(null)
            .mappedByProperty(null)
            .enumType(EnumDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .name("Unit")
                .caption("计量单位")
                .dataVersion(0)
                .build())
            .cascadeType(setOf())
            .orphanRemoval(null)
            .relationMode(null)
            .orderedCollection(true)
            .orderByDescriptors(listOf())
            .notNull(false)
            .primaryKey(false)
            .attachConfigKey("")
            .numberTemplateName("")
            .size(255)
            .builtIn(false)
            .writeRole("inventoryManage")
            .readRole(null)
            .defaultValue("")
            .treeDiscriminator(null)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .datasourceId("8nkFbruJIsS")
            .releaseSource("8716")
            .sourceId("5uFzovh2zoF")
            .build())
        modelerBatchEvent.add(CreateEntityConstraintEvent.builder()
            .id("8nkFbruJIsQ")
            .dataVersion(0)
            .appName("jari-erp")
            .appServiceName("inventory-service")
            .constraintName("size")
            .entity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .properties(setOf(PropertyDefinitionReference.builder()
  .id("8nkFbruJItn")
  .releaseSource("8716")
  .sourceId("5uFzovh2zoF")
  .name("units")
  .caption("计量单位")
  .entity(EntityDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo6")
    .dataVersion(0)
    .name("InventoryItem")
    .caption("存货档案")
    .tableName("iv_inventory_item")
    .build())
  .build()))
            .constraintParameters(mapOf("max" to "255"))
            .message(null)
            .payloads(setOf())
            .groups(setOf())
            .releaseSource("8716")
            .sourceId("5uFzovh2zo8")
            .datasourceId("8nkFbruJIsS")
            .build())
        eventGateway.publish(ModelerBatchEvent.builder()
                                          .events(modelerBatchEvent)
                                          .build())
    }

    fun doExecuteModelerBatchEvent2() {
        val modelerBatchEvent = ArrayList<BatchElementEvent>()
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("InventoryCategoryDto")
            .caption("存货类别")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsN")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("attributes")
  .caption("{entity.inventoryCategory.attributes}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItk")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoC")
    .name("attributes")
    .caption("类别属性")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zo5")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsO")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("children")
  .caption("{buildInProps.Children}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt2")
    .releaseSource("8716")
    .sourceId("5uFzovh2zok")
    .name("children")
    .caption("子节点集合")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.CREATE_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(CreateDtoDefinitionFromEntityEvent.builder()
    .id("8nkFbruJIsO")
    .dataVersion(0)
    .refEntity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .appName("jari-erp")
    .serviceName("inventory-service")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsP")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo8")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zo7")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsQ")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zo8")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsR")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsY")
    .releaseSource("8716")
    .sourceId("5uFzovh2zog")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zo9")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsS")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsZ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoh")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoa")
  .build()))
    .mapLoad(true)
    .loadOnly(true)
    .asInterface(false)
    .releaseSource("8716")
    .sourceId("5uFzovh2zo6")
    .build())
  .releaseSource("8716")
  .sourceId("5uFzovh2zo6")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsT")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo9")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zob")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsU")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByDept")
  .caption("{buildInProps.CreatedByDept}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoc")
    .name("createdByDept")
    .caption("创建部门ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoc")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsV")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByDeptName")
  .caption("{buildInProps.CreatedByDeptName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .releaseSource("8716")
    .sourceId("5uFzovh2zod")
    .name("createdByDeptName")
    .caption("创建部门名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zod")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsW")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByRealmName")
  .caption("{buildInProps.CreatedByRealmName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsW")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoe")
    .name("createdByRealmName")
    .caption("创建用户域名")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoe")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsX")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByUser")
  .caption("{buildInProps.CreatedByUser}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsS")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoa")
    .name("createdByUser")
    .caption("创建用户ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zof")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsY")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByUserName")
  .caption("{buildInProps.CreatedByUserName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .releaseSource("8716")
    .sourceId("5uFzovh2zob")
    .name("createdByUserName")
    .caption("创建用户姓名")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zog")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIsZ")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdTime")
  .caption("{buildInProps.CreatedTime}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsX")
    .releaseSource("8716")
    .sourceId("5uFzovh2zof")
    .name("createdTime")
    .caption("创建时间")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoh")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt0")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo8")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoi")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt1")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("hasChildren")
  .caption("{buildInProps.HasChildren}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt0")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoi")
    .name("hasChildren")
    .caption("是否有子节点")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoj")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt2")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zok")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt3")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryItem")
  .caption("{entity.inventoryItem}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItj")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoB")
    .name("inventoryItem")
    .caption("存货档案")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.CREATE_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(CreateDtoDefinitionFromEntityEvent.builder()
    .id("8nkFbruJIsP")
    .dataVersion(0)
    .refEntity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .appName("jari-erp")
    .serviceName("inventory-service")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt4")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt8")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoq")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zom")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt5")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt5")
    .releaseSource("8716")
    .sourceId("5uFzovh2zon")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zon")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt6")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItg")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoy")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoo")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt7")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIth")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoz")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zop")
  .build()))
    .mapLoad(true)
    .loadOnly(true)
    .asInterface(false)
    .releaseSource("8716")
    .sourceId("5uFzovh2zo7")
    .build())
  .releaseSource("8716")
  .sourceId("5uFzovh2zol")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt8")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryCategory.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItl")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoD")
    .name("name")
    .caption("类别名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoq")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIt9")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("parent")
  .caption("{buildInProps.Parent}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt1")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoj")
    .name("parent")
    .caption("父节点")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.CREATE_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(CreateDtoDefinitionFromEntityEvent.builder()
    .id("8nkFbruJIsO")
    .dataVersion(0)
    .refEntity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .appName("jari-erp")
    .serviceName("inventory-service")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .createPropCommands(listOf())
    .mapLoad(true)
    .loadOnly(true)
    .asInterface(false)
    .releaseSource("8716")
    .sourceId("5uFzovh2zo6")
    .build())
  .releaseSource("8716")
  .sourceId("5uFzovh2zor")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIta")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("recycleIndex")
  .caption("{buildInProps.RecycleIndex}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo7")
    .name("recycleIndex")
    .caption("回收键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zos")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItb")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("recycled")
  .caption("{buildInProps.Recycled}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo6")
    .name("recycled")
    .caption("是否已回收")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zot")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItc")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsY")
    .releaseSource("8716")
    .sourceId("5uFzovh2zog")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zou")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItd")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sortIndex")
  .caption("{buildInProps.SortIndex}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt4")
    .releaseSource("8716")
    .sourceId("5uFzovh2zom")
    .name("sortIndex")
    .caption("同级序号")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zov")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIte")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sortPath")
  .caption("{buildInProps.SortPath}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt3")
    .releaseSource("8716")
    .sourceId("5uFzovh2zol")
    .name("sortPath")
    .caption("节点路径")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zow")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItf")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .sourceId("5uFzovh2zo5")
    .releaseSource("8716")
    .name("InventoryCategoryDto")
    .caption("存货类别")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsZ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoh")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zox")
  .build()))
            .mapLoad(false)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo5")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsQ")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("CreateInventoryCategoryCommand")
            .caption("创建存货类别请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItg")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("attributes")
  .caption("{entity.inventoryCategory.attributes}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItk")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoC")
    .name("attributes")
    .caption("类别属性")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoy")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIth")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo9")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoz")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIti")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryItem")
  .caption("{entity.inventoryItem}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItj")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoB")
    .name("inventoryItem")
    .caption("存货档案")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoA")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItj")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryCategory.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItl")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoD")
    .name("name")
    .caption("类别名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoB")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItk")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("parent")
  .caption("{buildInProps.Parent}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt1")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoj")
    .name("parent")
    .caption("父节点")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoC")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItl")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsY")
    .releaseSource("8716")
    .sourceId("5uFzovh2zog")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoD")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItm")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sortIndex")
  .caption("{buildInProps.SortIndex}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt4")
    .releaseSource("8716")
    .sourceId("5uFzovh2zom")
    .name("sortIndex")
    .caption("同级序号")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoE")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItn")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .sourceId("5uFzovh2zo8")
    .releaseSource("8716")
    .name("CreateInventoryCategoryCommand")
    .caption("创建存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsZ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoh")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoF")
  .build()))
            .mapLoad(false)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo8")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .sourceId("5uFzovh2zo5")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryCategory")
                .build())
            .name("createInventoryCategory")
            .httpMethod(CommandHttpMethod.POST)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath(null)
            .okMessage(null)
            .description("创建存货类别")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .sourceId("5uFzovh2zo5")
                .releaseSource("8716")
                .name("InventoryCategoryDto")
                .caption("存货类别")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .entityOperation(EntityOperation.CREATE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsN")
            .dataVersion(0)
            .sourceId("5uFzovh2zo5")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("createInventoryCategory")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsQ")
                .sourceId("5uFzovh2zo8")
                .releaseSource("8716")
                .name("CreateInventoryCategoryCommand")
                .caption("创建存货类别请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("创建命令参数")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsR")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("UpdateInventoryCategoryCommand")
            .caption("修改存货类别请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIto")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("attributes")
  .caption("{entity.inventoryCategory.attributes}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItk")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoC")
    .name("attributes")
    .caption("类别属性")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoG")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItp")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo9")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoH")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItq")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo8")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoI")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItr")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoJ")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIts")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryItem")
  .caption("{entity.inventoryItem}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItj")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoB")
    .name("inventoryItem")
    .caption("存货档案")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsP")
    .sourceId("5uFzovh2zo7")
    .releaseSource("8716")
    .name("InventoryItemReference")
    .caption("entity.inventoryItem引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoK")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItt")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryCategory.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItl")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoD")
    .name("name")
    .caption("类别名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoL")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItu")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("parent")
  .caption("{buildInProps.Parent}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt1")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoj")
    .name("parent")
    .caption("父节点")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoM")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItv")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsY")
    .releaseSource("8716")
    .sourceId("5uFzovh2zog")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoN")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItw")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sortIndex")
  .caption("{buildInProps.SortIndex}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt4")
    .releaseSource("8716")
    .sourceId("5uFzovh2zom")
    .name("sortIndex")
    .caption("同级序号")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoO")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItx")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsR")
    .sourceId("5uFzovh2zo9")
    .releaseSource("8716")
    .name("UpdateInventoryCategoryCommand")
    .caption("修改存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsZ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoh")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoP")
  .build()))
            .mapLoad(true)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zo9")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsO")
            .dataVersion(0)
            .sourceId("5uFzovh2zo6")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryCategory")
                .build())
            .name("updateInventoryCategory")
            .httpMethod(CommandHttpMethod.PUT)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath(null)
            .okMessage(null)
            .description("修改存货类别")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .sourceId("5uFzovh2zo5")
                .releaseSource("8716")
                .name("InventoryCategoryDto")
                .caption("存货类别")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .entityOperation(EntityOperation.UPDATE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsO")
            .dataVersion(0)
            .sourceId("5uFzovh2zo6")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("updateInventoryCategory")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsR")
                .sourceId("5uFzovh2zo9")
                .releaseSource("8716")
                .name("UpdateInventoryCategoryCommand")
                .caption("修改存货类别请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("修改命令参数")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsS")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("DeleteInventoryCategoryCommand")
            .caption("删除存货类别请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIty")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsS")
    .sourceId("5uFzovh2zoa")
    .releaseSource("8716")
    .name("DeleteInventoryCategoryCommand")
    .caption("删除存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsQ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo8")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoQ")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItz")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsS")
    .sourceId("5uFzovh2zoa")
    .releaseSource("8716")
    .name("DeleteInventoryCategoryCommand")
    .caption("删除存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsN")
    .releaseSource("8716")
    .sourceId("5uFzovh2zo5")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoR")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItA")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsS")
    .sourceId("5uFzovh2zoa")
    .releaseSource("8716")
    .name("DeleteInventoryCategoryCommand")
    .caption("删除存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsY")
    .releaseSource("8716")
    .sourceId("5uFzovh2zog")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoS")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItB")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsS")
    .sourceId("5uFzovh2zoa")
    .releaseSource("8716")
    .name("DeleteInventoryCategoryCommand")
    .caption("删除存货类别请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIsZ")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoh")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsN")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo5")
        .dataVersion(0)
        .name("InventoryCategory")
        .caption("存货类别")
        .tableName("iv_inventory_category")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoT")
  .build()))
            .mapLoad(true)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zoa")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsP")
            .dataVersion(0)
            .sourceId("5uFzovh2zo7")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryCategory")
                .build())
            .name("deleteInventoryCategory")
            .httpMethod(CommandHttpMethod.POST)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath("delete")
            .okMessage(null)
            .description("创建存货类别")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .sourceId("5uFzovh2zo5")
                .releaseSource("8716")
                .name("InventoryCategoryDto")
                .caption("存货类别")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsN")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo5")
                .dataVersion(0)
                .name("InventoryCategory")
                .caption("存货类别")
                .tableName("iv_inventory_category")
                .build())
            .entityOperation(EntityOperation.DELETE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsP")
            .dataVersion(0)
            .sourceId("5uFzovh2zo7")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsP")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo7")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("deleteInventoryCategory")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .sourceId("5uFzovh2zoa")
                .releaseSource("8716")
                .name("DeleteInventoryCategoryCommand")
                .caption("删除存货类别请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("创建命令参数")
            .build())
        eventGateway.publish(ModelerBatchEvent.builder()
                                          .events(modelerBatchEvent)
                                          .build())
    }

    fun doExecuteModelerBatchEvent3() {
        val modelerBatchEvent = ArrayList<BatchElementEvent>()
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsT")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("InventoryItemDto")
            .caption("存货档案")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItC")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt9")
    .releaseSource("8716")
    .sourceId("5uFzovh2zor")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoU")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItD")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByDept")
  .caption("{buildInProps.CreatedByDept}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItc")
    .releaseSource("8716")
    .sourceId("5uFzovh2zou")
    .name("createdByDept")
    .caption("创建部门ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoV")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItE")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByDeptName")
  .caption("{buildInProps.CreatedByDeptName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItd")
    .releaseSource("8716")
    .sourceId("5uFzovh2zov")
    .name("createdByDeptName")
    .caption("创建部门名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoW")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItF")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByRealmName")
  .caption("{buildInProps.CreatedByRealmName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIte")
    .releaseSource("8716")
    .sourceId("5uFzovh2zow")
    .name("createdByRealmName")
    .caption("创建用户域名")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoX")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItG")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByUser")
  .caption("{buildInProps.CreatedByUser}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIta")
    .releaseSource("8716")
    .sourceId("5uFzovh2zos")
    .name("createdByUser")
    .caption("创建用户ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoY")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItH")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdByUserName")
  .caption("{buildInProps.CreatedByUserName}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItb")
    .releaseSource("8716")
    .sourceId("5uFzovh2zot")
    .name("createdByUserName")
    .caption("创建用户姓名")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zoZ")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItI")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("createdTime")
  .caption("{buildInProps.CreatedTime}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItf")
    .releaseSource("8716")
    .sourceId("5uFzovh2zox")
    .name("createdTime")
    .caption("创建时间")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp0")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItJ")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt8")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoq")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp1")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItK")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt5")
    .releaseSource("8716")
    .sourceId("5uFzovh2zon")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp2")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItL")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryCategory")
  .caption("{entity.inventoryCategory}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIti")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoA")
    .name("inventoryCategory")
    .caption("存货类别")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp3")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItM")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryItem.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItm")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoE")
    .name("name")
    .caption("存货名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp4")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItN")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("recycleIndex")
  .caption("{buildInProps.RecycleIndex}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt7")
    .releaseSource("8716")
    .sourceId("5uFzovh2zop")
    .name("recycleIndex")
    .caption("回收键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp5")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItO")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("recycled")
  .caption("{buildInProps.Recycled}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt6")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoo")
    .name("recycled")
    .caption("是否已回收")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp6")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItP")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItg")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoy")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp7")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItQ")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIth")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoz")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp8")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItR")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsT")
    .sourceId("5uFzovh2zob")
    .releaseSource("8716")
    .name("InventoryItemDto")
    .caption("存货档案")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("units")
  .caption("{enum.unit}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItn")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoF")
    .name("units")
    .caption("计量单位")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zp9")
  .build()))
            .mapLoad(false)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zob")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsU")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("CreateInventoryItemCommand")
            .caption("创建存货档案请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItS")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt9")
    .releaseSource("8716")
    .sourceId("5uFzovh2zor")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpa")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItT")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryCategory")
  .caption("{entity.inventoryCategory}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIti")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoA")
    .name("inventoryCategory")
    .caption("存货类别")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpb")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItU")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryItem.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItm")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoE")
    .name("name")
    .caption("存货名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpc")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItV")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItg")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoy")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpd")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItW")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIth")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoz")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpe")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItX")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsU")
    .sourceId("5uFzovh2zoc")
    .releaseSource("8716")
    .name("CreateInventoryItemCommand")
    .caption("创建存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("units")
  .caption("{enum.unit}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItn")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoF")
    .name("units")
    .caption("计量单位")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpf")
  .build()))
            .mapLoad(false)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zoc")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsQ")
            .dataVersion(0)
            .sourceId("5uFzovh2zo8")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryItem")
                .build())
            .name("createInventoryItem")
            .httpMethod(CommandHttpMethod.POST)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath(null)
            .okMessage(null)
            .description("创建存货档案")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsT")
                .sourceId("5uFzovh2zob")
                .releaseSource("8716")
                .name("InventoryItemDto")
                .caption("存货档案")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .entityOperation(EntityOperation.CREATE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsQ")
            .dataVersion(0)
            .sourceId("5uFzovh2zo8")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsQ")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo8")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("createInventoryItem")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsU")
                .sourceId("5uFzovh2zoc")
                .releaseSource("8716")
                .name("CreateInventoryItemCommand")
                .caption("创建存货档案请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("创建命令参数")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsV")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("UpdateInventoryItemCommand")
            .caption("修改存货档案请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItY")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("classificationLevel")
  .caption("{buildInProps.ClassificationLevel}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt9")
    .releaseSource("8716")
    .sourceId("5uFzovh2zor")
    .name("classificationLevel")
    .caption("密级")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpg")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJItZ")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt8")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoq")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zph")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu0")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt5")
    .releaseSource("8716")
    .sourceId("5uFzovh2zon")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpi")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu1")
  .dataVersion(1)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("inventoryCategory")
  .caption("{entity.inventoryCategory}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIti")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoA")
    .name("inventoryCategory")
    .caption("存货类别")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(DtoPropertyCreateOption.USE_EXIST_DTO)
  .existDto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsO")
    .sourceId("5uFzovh2zo6")
    .releaseSource("8716")
    .name("InventoryCategoryReference")
    .caption("entity.inventoryCategory引用")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpj")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu2")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("name")
  .caption("{entity.inventoryItem.name}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItm")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoE")
    .name("name")
    .caption("存货名称")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpk")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu3")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItg")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoy")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpl")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu4")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIth")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoz")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpm")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu5")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsV")
    .sourceId("5uFzovh2zod")
    .releaseSource("8716")
    .name("UpdateInventoryItemCommand")
    .caption("修改存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("units")
  .caption("{enum.unit}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItn")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoF")
    .name("units")
    .caption("计量单位")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpn")
  .build()))
            .mapLoad(true)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zod")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsR")
            .dataVersion(0)
            .sourceId("5uFzovh2zo9")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryItem")
                .build())
            .name("updateInventoryItem")
            .httpMethod(CommandHttpMethod.PUT)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath(null)
            .okMessage(null)
            .description("修改存货档案")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsT")
                .sourceId("5uFzovh2zob")
                .releaseSource("8716")
                .name("InventoryItemDto")
                .caption("存货档案")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .entityOperation(EntityOperation.UPDATE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsR")
            .dataVersion(0)
            .sourceId("5uFzovh2zo9")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsR")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo9")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("updateInventoryItem")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsV")
                .sourceId("5uFzovh2zod")
                .releaseSource("8716")
                .name("UpdateInventoryItemCommand")
                .caption("修改存货档案请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("修改命令参数")
            .build())
        modelerBatchEvent.add(CreateDtoDefinitionFromEntityEvent.builder()
            .id("8nkFbruJIsW")
            .dataVersion(0)
            .refEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .appName("jari-erp")
            .serviceName("inventory-service")
            .name("DeleteInventoryItemCommand")
            .caption("删除存货档案请求参数")
            .createPropCommands(listOf(CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu6")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsW")
    .sourceId("5uFzovh2zoe")
    .releaseSource("8716")
    .name("DeleteInventoryItemCommand")
    .caption("删除存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("dataVersion")
  .caption("{buildInProps.DataVersion}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt8")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoq")
    .name("dataVersion")
    .caption("数据版本")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpo")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu7")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsW")
    .sourceId("5uFzovh2zoe")
    .releaseSource("8716")
    .name("DeleteInventoryItemCommand")
    .caption("删除存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("id")
  .caption("{buildInProps.Id}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIt5")
    .releaseSource("8716")
    .sourceId("5uFzovh2zon")
    .name("id")
    .caption("主键")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpp")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu8")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsW")
    .sourceId("5uFzovh2zoe")
    .releaseSource("8716")
    .name("DeleteInventoryItemCommand")
    .caption("删除存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("releaseSource")
  .caption("{buildInProps.ReleaseSource}")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJItg")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoy")
    .name("releaseSource")
    .caption("发布源站点ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpq")
  .build(), CreateDtoPropDefFromEntityEvent.builder()
  .id("8nkFbruJIu9")
  .dataVersion(0)
  .dto(DtoDefinitionReference.builder()
    .id("8nkFbruJIsW")
    .sourceId("5uFzovh2zoe")
    .releaseSource("8716")
    .name("DeleteInventoryItemCommand")
    .caption("删除存货档案请求参数")
    .flatten(false)
    .appName("jari-erp")
    .serviceName("inventory-service")
    .asInterface(false)
    .build())
  .name("sourceId")
  .caption("buildInProps.SourceID")
  .localize(false)
  .entityPropertyRef(PropertyDefinitionReference.builder()
    .id("8nkFbruJIth")
    .releaseSource("8716")
    .sourceId("5uFzovh2zoz")
    .name("sourceId")
    .caption("源ID")
    .entity(EntityDefinitionReference.builder()
        .id("8nkFbruJIsO")
        .releaseSource("8716")
        .sourceId("5uFzovh2zo6")
        .dataVersion(0)
        .name("InventoryItem")
        .caption("存货档案")
        .tableName("iv_inventory_item")
        .build())
    .build())
  .createOption(null)
  .existDto(null)
  .createDtoCommand(null)
  .releaseSource("8716")
  .sourceId("5uFzovh2zpr")
  .build()))
            .mapLoad(true)
            .loadOnly(false)
            .asInterface(false)
            .releaseSource("8716")
            .sourceId("5uFzovh2zoe")
            .build())
        modelerBatchEvent.add(CreateCommandDefinitionEvent.builder()
            .id("8nkFbruJIsS")
            .dataVersion(0)
            .sourceId("5uFzovh2zoa")
            .releaseSource("8716")
            .appName("jari-erp")
            .serviceName("inventory-service")
            .aggregate(AggregateDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("InventoryItem")
                .build())
            .name("deleteInventoryItem")
            .httpMethod(CommandHttpMethod.POST)
            .noAuthRequired(false)
            .roleName("inventoryManage")
            .openToExternal(false)
            .requestPath("delete")
            .okMessage(null)
            .description("创建存货档案")
            .returnType(ReturnDataType.ENTITY)
            .returnDto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsT")
                .sourceId("5uFzovh2zob")
                .releaseSource("8716")
                .name("InventoryItemDto")
                .caption("存货档案")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .returnEnum(null)
            .mapKeyEnum(null)
            .forEntity(EntityDefinitionReference.builder()
                .id("8nkFbruJIsO")
                .releaseSource("8716")
                .sourceId("5uFzovh2zo6")
                .dataVersion(0)
                .name("InventoryItem")
                .caption("存货档案")
                .tableName("iv_inventory_item")
                .build())
            .entityOperation(EntityOperation.DELETE)
            .build())
        modelerBatchEvent.add(CreateCommandParamDefinitionEvent.builder()
            .id("8nkFbruJIsS")
            .dataVersion(0)
            .sourceId("5uFzovh2zoa")
            .releaseSource("8716")
            .command(CommandDefinitionReference.builder()
                .id("8nkFbruJIsS")
                .releaseSource("8716")
                .sourceId("5uFzovh2zoa")
                .appName("jari-erp")
                .serviceName("inventory-service")
                .name("deleteInventoryItem")
                .build())
            .name("command")
            .sortIndex(1)
            .notNull(true)
            .bindingType(RequestParamBindingType.REQUEST_BODY)
            .dataType(ParameterDataType.ENTITY)
            .dto(DtoDefinitionReference.builder()
                .id("8nkFbruJIsW")
                .sourceId("5uFzovh2zoe")
                .releaseSource("8716")
                .name("DeleteInventoryItemCommand")
                .caption("删除存货档案请求参数")
                .flatten(false)
                .appName("jari-erp")
                .serviceName("inventory-service")
                .asInterface(false)
                .build())
            .collectionType(CollectionType.NONE)
            .mapKeyDataType(null)
            .enumType(null)
            .mapKeyEnum(null)
            .description("创建命令参数")
            .build())
        eventGateway.publish(ModelerBatchEvent.builder()
                                          .events(modelerBatchEvent)
                                          .build())
    }

    override fun getPatchSource(): String {
        return "c321"
    }
}

